<li>
<h2><? __('TAGS_SIDEBOX_TITLE'); ?></h2>
<? if(!empty($sidebox_tags)) { ?>
<div id="tags_channels">
	<? 
		$countArticles = 0;
		foreach ($sidebox_tags as $tag):
			$countArticles += count($tag['Article']);
		endforeach; 
	?>
	
	<? foreach ($sidebox_tags as $tag): 
	?>
	<span style="font-size: <? (($countArticles*count($tag['Article']))>0) ? printf(intval(100 + 100*count($tag['Article'])/($countArticles))) : printf("100"); ?>%"><? echo $html -> link($tag['Tag']['name'],'/tags/view/'.$tag['Tag']['seo_link']); ?></span>
	<? endforeach; ?>
	
</div>
<? } else { __('TAGS_EMPTY'); }?>
</li>